﻿using System;
using UnityEngine;

namespace UniRx
{
	// Token: 0x020003D9 RID: 985
	public static class FrameCountTypeExtensions
	{
		// Token: 0x06001425 RID: 5157 RVA: 0x0005A153 File Offset: 0x00058553
		public static YieldInstruction GetYieldInstruction(this FrameCountType frameCountType)
		{
			switch (frameCountType)
			{
			case FrameCountType.FixedUpdate:
				return YieldInstructionCache.WaitForFixedUpdate;
			case FrameCountType.EndOfFrame:
				return YieldInstructionCache.WaitForEndOfFrame;
			}
			return null;
		}
	}
}
